//
//  ConCitiesModel.m
//  Shengzhuli
//
//  Created by FXGuo on 17/3/24.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ConCitiesModel.h"

@implementation ConCitiesModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.name = dict[@"name"];
        self.areas = [NSMutableArray array];
        [self.areas addObjectsFromArray:dict[@"sub"]];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[ConCitiesModel alloc]initWithDict:dict];
}

@end
